package com.wxxymaker.utils.methods;

import jetbrick.template.JetAnnotations;

/**
 * @Author: Soft
 * @Date: 2018/6/14 17:46
 * @Desc: 模板扩展方法
 */
@JetAnnotations.Methods
public class JetMethods {

    // 判断id是不是在shops列表中
    public static boolean isContainsId(Integer[] ids, int id) {
        if (ids.length == 0) return true;
        for (Integer d : ids) {
            if (d == id) {
                return true;
            }
        }
        return false;
    }
}
